package com.github.dreamroute.love;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import static java.lang.System.currentTimeMillis;

@RestController
@SpringBootApplication
public class LoveApplication {

    @GetMapping("/index")
    public String index() {
        return "OK: " + currentTimeMillis();
    }

    public static void main(String[] args) {
        SpringApplication.run(LoveApplication.class, args);
    }

}
